public class Synchronized_ implements Runnable {
    private Tciket tciket;

    public Synchronized_() {

    }

    public Synchronized_(Tciket tciket) {
        this.tciket = tciket;
    }

    @Override
    public void run() {
        while (true) {
            try {
                tciket.sell();
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    }

}